print-operation: Be more robust in the error path
authorDebarshi Ray <debarshir@gnome.org>
Wed, 16 Mar 2016 01:18:24 +0000 (02:18 +0100)
committerDebarshi Ray <debarshir@gnome.org>
Mon, 21 Mar 2016 15:09:30 +0000 (16:09 +0100)
commit2407f157c76c6835cd0fdc23fdd09875a63c202e
tree50d8c4ec0fa78b04db73bbbaffeb06b56a134404
parentf988f1131b638144c7cd3d8a044d4a101b3e4c13
print-operation: Be more robust in the error path

This isn't an issue at the moment. Only exporting to a file can fail
by setting by setting an error and it happens to correctly return
GTK_PRINT_OPERATION_RESULT_ERROR regardless of this code.

Still, let's make this block of code more correct to prevent future
changes from introducing broken behaviour.

https://bugzilla.gnome.org/show_bug.cgi?id=763731
gtk/gtkprintoperation.c